package com.huynhchihieu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huynhchihieu.dao.FamilyDAO;
import com.huynhchihieu.domain.Family;

@Service
@Transactional
public class FamilyServiceImpl implements FamilyService{
	
	@Autowired
	FamilyDAO  familyDAO;
	
	public void addFamily(Family family) {
		familyDAO.addFamily(family);
	}

	public List<Family> getAllFamilies(){
		return familyDAO.getAllFamilies();
	}
}
